package lium.lbs.lbsim.adapter

import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lmlibrary.Constants
import com.qmuiteam.qmui.widget.QMUIRadiusImageView
import lium.lbs.lbsim.App
import lium.lbs.lbsim.R
import lium.lbs.lbsim.bean.MlistBean
import lium.lbs.lbsim.zfw.SearchForFirendActivity

class SearchForFriendAdapter : BaseQuickAdapter<MlistBean, BaseViewHolder>(R.layout.item_contact_list) {
    override fun convert(helper: BaseViewHolder?, item: MlistBean?) {

        val options = RequestOptions()
        options.placeholder(R.drawable.touxianggroup)
        Glide.with(App.getContext())
            .load(Constants.Host_Pic + item?.headImage)
            .apply(options)
            .into(helper?.getView<ImageView>(R.id.contacts_head)!!)

        helper?.getView<TextView>(R.id.contacts_name)?.text = item?.nickName + ""
        helper?.getView<TextView>(R.id.contacts_code)?.text = item?.phone + ""
    }


}